package com.leiyuee.Thread;

/**
 * @Author : Yu_Lei
 * @create 2024/3/11
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("实现runnable");
    }

    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        new Thread(myRunnable).start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("匿名内部类");
            }
        }).start();


    }
}
